<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<script type="text/javascript">
$(function(){
	$(".detail").colorbox({width:"60%", height:"90%", iframe:true});
});
</script>
<table class="list_table" width="100%">
<tr>
	<th>ID</th>
	<th>所在店铺</th>
	<th>所属模板</th>
	<th>所属模块</th>
	<th>标题</th>
	<th>图片</th>
	<th>价格</th>
	<th>链接地址</th>
	<th>排序</th>
	<th width="120">操作</th>
</tr>
<?foreach ($content as $c):?>
<tr>
	<td><?=$c['id']?></td>
	<td><?=$c['shop_name']?></td>
	<td><?=$c['template_name']?></td>
	<td><?=$c['module_name']?></td>
	<td><?=$c['title']?></td>
	<td><?=$c['image']?></td>
	<td><?=$c['price']?></td>
	<td><a href="<?=$c['url']?>" target="_blank"><?=$c['url']?></a></td>
	<td><?=$c['sort']?></td>
	<td>
		<a>预览</a>
		<a href="<?=url('Online::EbayTemplate/TemplateModuleContentEdit', array('id' => $c['id']))?>">编辑</a>
		<a onclick="if (! confirm('确定删除?')) return false;">删除</a>
	</td>
</tr>
<?endforeach;?>
</table>
<?=$page;?>
<?php $this->_endblock();?>